<template>
  <div class="naviBar">
    <div class="content">
      <a ref="javascript:;" class="content" :class="{'on':'/msite' ===$route.path}" @click="$router.push('/msite')">
        <span>
          <i class="cc- cc-shouye"></i>
        </span>
        <span> 首页 </span>
      </a>

      <a ref="javascript:;" class="content" :class="{'on':'/search' ===$route.path}" @click="$router.push('/search')">
        <span>
          <i class="cc- cc-sousuo"></i>
        </span>
        <span> 搜索 </span>
      </a>

      <a ref="javascript:;" class="content" :class="{'on':'/order' ===$route.path}" @click="$router.push('/order')">
        <span>
          <i class="cc- cc-yuedu"></i>
        </span>
        <span> 订单 </span>
      </a>

      <a ref="javascript:;" class="content" :class="{'on':'/mine' ===$route.path}" @click="$router.push('/mine')">
        <span>
          <i class="cc- cc-wode"></i>
        </span>
        <span> 我的 </span>
      </a>
    </div>
  </div>
</template>

<script>
export default {
  name:'navi',
  methods:{}
};
</script>

<style lang="less" scoped>
.naviBar{
  position: fixed;
  bottom: 0;
  width: 100%;
}
.content {
  border-top: 1px solid #cccccc;
  display: flex;
  justify-content: space-evenly;
  font-size: 12px;

  a {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
  }
  .on{
    color: var(--themeColor);
  }
}
</style>